package com.netease.pop.sdk;

import java.io.Serializable;
import java.util.List;

public abstract class KopResponse implements Serializable {

	private static final long serialVersionUID = 5014379068811962022L;

	private String code;

	private String msg;

	private List<SubError> subErrors;

	public boolean isSuccess() {
		return this.code == null;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public List<SubError> getSubErrors() {
		return subErrors;
	}

	public void setSubErrors(List<SubError> subErrors) {
		this.subErrors = subErrors;
	}
	
	
}
